import { defineConfig } from 'umi';

const isDev = process.env.NODE_ENV === 'development';

export default defineConfig({
  outputPath: '../../dist/apps/test',
  base: '/apps/test',
  publicPath: isDev ? '/' : '/apps/test/',
  runtimePublicPath: true,
  history: { type: 'hash' },
  nodeModulesTransform: {
    type: 'none',
  },
  routes: [
    { path: '/one', component: '@/pages/one' },
    { path: '/', component: '@/pages/index' },
  ],
  //以下为配置项
  qiankun: {
    slave: {}
  }
});
